#include "stdafx.h" 
#include "sys_global_info.h"
#include <utility/api_tools.h>

sys_global_info::sys_global_info(void)
{
	__init();
}

sys_global_info::~sys_global_info(void)
{
}

void 
sys_global_info::__init()
{
	this->app_path_ = aot::tt::utility::get_app_path();

	const char* pos = 
		aot::tt::utility::str_find_lastof(this->app_path_.c_str(), "\\/", (int)this->app_path_.size()-1);

	if( pos )
		this->app_root_path_ = this->app_path_.substr(0, pos - this->app_path_.c_str() + 1);
	else
		this->app_root_path_ = this->app_path_;

	//this->app_temp_path_ = this->app_root_path_ + "temp\\";

	//this->plugins_root_path_ = this->app_root_path_ + "plugins\\";

	//this->modelues_config_fn_ = this->app_root_path_ + "config\\modules.xml";
}